package com.haima.sage.bigdata.api.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.commons.lang.StringUtils;

public class BaseVO {
    // base
    protected String appkey;
    protected String timestamp;
    protected String appUserId;
    protected String appUserName;

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getTimestamp() {
        return timestamp;
    }
    @JsonIgnore
    public Long getLongTimestamp() {
        if (!StringUtils.isBlank(timestamp)) {
            try {
                return Long.parseLong(timestamp);
            } catch (Exception e) {

            }
        }
        return null;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId;
    }

    public String getAppUserName() {
        return appUserName;
    }

    public void setAppUserName(String appUserName) {
        this.appUserName = appUserName;
    }
}
